﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class HomePage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BindDate();
    }
    protected void SysEvent(object sender, EventArgs e)
    {
        lefReg.Title = "系统管理";
        ExtAspNet.Button btn = sender as ExtAspNet.Button;
        btn.Pressed = true;
        btnColumn.Pressed = btnContent.Pressed = false;
        
    }
    protected void CluEvent(object sender, EventArgs e)
    {
        lefReg.Title = "栏目管理";
        ExtAspNet.Button btn = sender as ExtAspNet.Button;
        btn.Pressed = true;
        btnSystem.Pressed = btnContent.Pressed = false;
      
    }
    protected void ContEvent(object sender, EventArgs e)
    {
        lefReg.Title = "内容管理";
        ExtAspNet.Button btn = sender as ExtAspNet.Button;
        btn.Pressed = true;
        btnSystem.Pressed = btnColumn.Pressed = false;
    } 
    protected void SysOutEvent(object sender, EventArgs e)
    {
        ExtAspNet.Confirm.Show("你要退出艺述英国吗？");
    }
    protected void CancelOut(object sender, EventArgs e)
    {
        
    }
    private void BindDate()
    {
        XmlDataSource xds = new XmlDataSource();
        xds.DataFile=ConfigurationManager.AppSettings["menuPath"];
        treeMenu.DataSource = xds;
        treeMenu.DataBind();

    }
    protected void AddTab(object sender, EventArgs e)
    {
       
    }
}